[gd_scene load_steps=30 format=2]

[ext_resource path="res://scripts/Player.gd" type="Script" id=1]
[ext_resource path="res://assets/Player/AssetPLayerArrat1.png" type="Texture" id=2]
[ext_resource path="res://assets/Player/AssetPLayerArratprisel2_2.png" type="Texture" id=3]
[ext_resource path="res://assets/Player/AssetPLayerArratprisel3_2.png" type="Texture" id=4]
[ext_resource path="res://assets/Player/AssetPLayerArrat2.png" type="Texture" id=5]
[ext_resource path="res://assets/Player/AssetPLayerArrat3.png" type="Texture" id=6]
[ext_resource path="res://assets/Player/AssetPLayerArratprisel1_2.png" type="Texture" id=7]
[ext_resource path="res://assets/Player/AssetPLayerArrat4.png" type="Texture" id=8]
[ext_resource path="res://scripts/Save.gd" type="Script" id=9]
[ext_resource path="res://assets/GUI/HP_Bar/HP_Bar.tscn" type="PackedScene" id=10]
[ext_resource path="res://addons/escape/Escape.tscn" type="PackedScene" id=11]
[ext_resource path="res://assets/Tests/texture_01.png" type="Texture" id=12]
[ext_resource path="res://scripts/Trigger.gd" type="Script" id=13]
[ext_resource path="res://assets/Barrel/barrel.png" type="Texture" id=14]
[ext_resource path="res://assets/Water/Water_Body.tscn" type="PackedScene" id=15]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 522.186, 12.9403 )

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 10, 233.152 )

[sub_resource type="PhysicsMaterial" id=3]

[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 30.8372, 43.0542 )

[sub_resource type="Animation" id=5]
resource_name = "Idle"
length = 8.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:linear_velocity")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Vector2( 0, -50 ) ]
}

[sub_resource type="RectangleShape2D" id=6]
extents = Vector2( 388.762, 150.746 )

[sub_resource type="RectangleShape2D" id=7]
extents = Vector2( 18.8725, 18.7813 )

[sub_resource type="RectangleShape2D" id=8]
extents = Vector2( 18.8592, 23.0553 )

[sub_resource type="SpriteFrames" id=9]
animations = [ {
"frames": [ ExtResource( 2 ) ],
"loop": true,
"name": "posible",
"speed": 5.0
}, {
"frames": [ ExtResource( 8 ) ],
"loop": true,
"name": "jump",
"speed": 5.0
}, {
"frames": [ ExtResource( 7 ), ExtResource( 3 ), ExtResource( 4 ) ],
"loop": true,
"name": "SquatAction",
"speed": 5.0
}, {
"frames": [ ExtResource( 2 ), ExtResource( 8 ) ],
"loop": true,
"name": "Idle",
"speed": 5.0
}, {
"frames": [ ExtResource( 7 ) ],
"loop": true,
"name": "SquatIdle",
"speed": 5.0
}, {
"frames": [ ExtResource( 5 ), ExtResource( 6 ) ],
"loop": true,
"name": "Walk",
"speed": 4.0
} ]

[sub_resource type="RectangleShape2D" id=10]
extents = Vector2( 267.176, 41.9006 )

[sub_resource type="RectangleShape2D" id=11]
extents = Vector2( 269.676, 10 )

[sub_resource type="RectangleShape2D" id=12]
extents = Vector2( 244.463, 10 )

[sub_resource type="Animation" id=13]
resource_name = "Motion"
length = 2.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 1, 2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( -1.98682, -17.7002 ), Vector2( -1.98682, 5.2998 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath(".:rotation_degrees")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = false
tracks/1/keys = {
"times": PoolRealArray( 0, 1, 2 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ -180.0, -180.0, -178.0 ]
}

[sub_resource type="RectangleShape2D" id=14]
extents = Vector2( 5.75348, 10 )

[node name="The Out Of City" type="Node2D"]

[node name="ScreenBorders" type="Node2D" parent="."]
position = Vector2( 502.356, -12.157 )
scale = Vector2( 1.9, 1.9 )

[node name="StaticBody2D" type="StaticBody2D" parent="ScreenBorders"]

[node name="UpBorder" type="CollisionShape2D" parent="ScreenBorders/StaticBody2D"]
position = Vector2( 230.991, -3.94016 )
shape = SubResource( 1 )

[node name="RightBorder" type="CollisionShape2D" parent="ScreenBorders/StaticBody2D"]
position = Vector2( 755.258, 230.798 )
shape = SubResource( 2 )

[node name="LeftBorder" type="CollisionShape2D" parent="ScreenBorders/StaticBody2D"]
position = Vector2( -275.212, 236.626 )
shape = SubResource( 2 )

[node name="Position2D" type="Position2D" parent="."]
visible = false
position = Vector2( 779.193, 828.665 )

[node name="Barrel" type="RigidBody2D" parent="." groups=[
"bodies",
]]
position = Vector2( 619.245, 777.62 )
rotation = -0.00235736
z_as_relative = false
physics_material_override = SubResource( 3 )
gravity_scale = 30.0
angular_damp = 0.0

[node name="barrel" type="Sprite" parent="Barrel"]
position = Vector2( -0.390476, -43.874 )
scale = Vector2( 6.84034, 6.15798 )
texture = ExtResource( 14 )

[node name="Collision" type="CollisionShape2D" parent="Barrel"]
position = Vector2( -0.464355, -43.8525 )
shape = SubResource( 4 )

[node name="Animation" type="AnimationPlayer" parent="Barrel"]
anims/Idle = SubResource( 5 )

[node name="Barrel2" type="RigidBody2D" parent="." groups=[
"bodies",
]]
position = Vector2( 409.95, 776.879 )
z_as_relative = false
mass = 0.510204
physics_material_override = SubResource( 3 )
gravity_scale = 25.0
linear_damp = 0.0
angular_damp = 0.0

[node name="barrel" type="Sprite" parent="Barrel2"]
position = Vector2( -0.390476, -43.874 )
scale = Vector2( 6.84034, 6.15798 )
texture = ExtResource( 14 )

[node name="Collision" type="CollisionShape2D" parent="Barrel2"]
position = Vector2( -0.464355, -43.8525 )
shape = SubResource( 4 )

[node name="Barrel3" type="RigidBody2D" parent="." groups=[
"bodies",
]]
position = Vector2( 294.95, 779.879 )
z_as_relative = false
mass = 0.510204
physics_material_override = SubResource( 3 )
gravity_scale = 25.0
linear_damp = 0.0
angular_damp = 0.0

[node name="barrel" type="Sprite" parent="Barrel3"]
position = Vector2( -0.390476, -43.874 )
scale = Vector2( 6.84034, 6.15798 )
texture = ExtResource( 14 )

[node name="Collision" type="CollisionShape2D" parent="Barrel3"]
position = Vector2( -0.464355, -43.8525 )
shape = SubResource( 4 )

[node name="Water_Body" parent="." instance=ExtResource( 15 )]
position = Vector2( 780.072, 817.138 )
k = 0.03
d = 0.3
spread = 0.001
spring_number = 40

[node name="LeftBlock" type="StaticBody2D" parent="."]
position = Vector2( 17.818, 0 )

[node name="Collision2" type="CollisionShape2D" parent="LeftBlock"]
position = Vector2( 368.589, 931.971 )
shape = SubResource( 6 )

[node name="texture" type="Sprite" parent="LeftBlock"]
position = Vector2( 372.813, 929.282 )
scale = Vector2( 0.758553, 0.289136 )
texture = ExtResource( 12 )

[node name="RightBlock" type="StaticBody2D" parent="."]
position = Vector2( -1, 3 )

[node name="Collision" type="CollisionShape2D" parent="RightBlock"]
position = Vector2( 1617.94, 929.282 )
scale = Vector2( 0.8, 1 )
shape = SubResource( 6 )

[node name="texture2" type="Sprite" parent="RightBlock"]
position = Vector2( 1613.43, 929.282 )
scale = Vector2( 0.602197, 0.295713 )
texture = ExtResource( 12 )

[node name="Player" type="KinematicBody2D" parent="."]
position = Vector2( 46.5806, 650.409 )
script = ExtResource( 1 )

[node name="CollisionSit" type="CollisionShape2D" parent="Player"]
visible = false
position = Vector2( 72.172, 74.1736 )
scale = Vector2( 1.9, 1.9 )
shape = SubResource( 7 )
disabled = true

[node name="Collision" type="CollisionShape2D" parent="Player"]
position = Vector2( 72.2378, 66.2825 )
scale = Vector2( 1.9, 1.9 )
shape = SubResource( 8 )

[node name="AnimatedSprite" type="AnimatedSprite" parent="Player"]
position = Vector2( 60.3159, 62.2558 )
scale = Vector2( 7.961, 7.961 )
frames = SubResource( 9 )
animation = "Idle"

[node name="GunPosition" type="Position2D" parent="Player"]
position = Vector2( 86.8501, 67.1099 )

[node name="Camera2D" type="Camera2D" parent="Player"]
position = Vector2( 448.243, 49.4844 )
scale = Vector2( 0.9, 0.5 )
current = true
limit_left = 0
limit_top = 0
limit_right = 1920
limit_bottom = 1080
smoothing_enabled = true

[node name="RunTimer" type="Timer" parent="Player"]
autostart = true

[node name="RecoveryPower" type="Timer" parent="Player"]
wait_time = 5.0

[node name="HP_Bar" parent="." instance=ExtResource( 10 )]

[node name="Escape" parent="." instance=ExtResource( 11 )]
position = Vector2( 1.33099, -0.184305 )

[node name="TimeMachine" type="Node2D" parent="."]
script = ExtResource( 9 )

[node name="Trigger" type="Area2D" parent="."]
position = Vector2( 1046.71, 915.6 )
rotation = -3.14159
script = ExtResource( 13 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger"]
position = Vector2( 1.70343, -60.657 )
shape = SubResource( 10 )

[node name="StaticBody2D" type="StaticBody2D" parent="."]
position = Vector2( 1045.71, 782.6 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2( -8.72156, 252.323 )
shape = SubResource( 11 )

[node name="CollisionShape2D2" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2( -1.98682, 5.2998 )
rotation = -3.14159
shape = SubResource( 12 )
one_way_collision = true

[node name="AnimationPlayer" type="AnimationPlayer" parent="StaticBody2D/CollisionShape2D2"]
anims/Motion = SubResource( 13 )

[node name="Border" type="StaticBody2D" parent="StaticBody2D/CollisionShape2D2"]
visible = false
position = Vector2( 1043.72, 792.9 )
rotation = 3.14159

[node name="CollisionShape2D3" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 812.828, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D7" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 922.828, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D9" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 978.828, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D11" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 1029.83, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D13" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 1085.83, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D14" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 1115.83, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D15" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 1137.83, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D16" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 1166.83, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D17" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 1193.83, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D18" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 1223.83, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D4" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 841.828, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D5" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 868.828, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D6" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 898.828, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D8" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 951.828, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D10" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 1008.83, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[node name="CollisionShape2D12" type="CollisionShape2D" parent="StaticBody2D/CollisionShape2D2/Border"]
position = Vector2( 1058.83, 798.062 )
rotation = -3.14159
shape = SubResource( 14 )
one_way_collision = true

[connection signal="timeout" from="Player/RunTimer" to="Player" method="_on_RunTimer_timeout"]
[connection signal="timeout" from="Player/RecoveryPower" to="Player" method="_on_RecoveryPower_timeout"]
[connection signal="body_entered" from="Trigger" to="Trigger" method="_on_Trigger_body_entered"]
